package com.ml.mall.service.sys;

import com.ml.mall.bean.page.Page;
import com.ml.mall.bean.req.sys.SysRoutingQueryPageDto;
import com.ml.mall.entity.sys.SysRouting;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface SysRoutingService extends IService<SysRouting> {

    /**
     * 根据公司id获取路由权限
     * @param companyId
     * @return
     */
    List<String> getRoutingPermissionsByCompanyId(Long companyId);

    /**
     * 分页查询路由
     * @param dto
     * @return
     */
    Page<SysRouting> routingQueryPage(SysRoutingQueryPageDto dto);

    /**
     * 查询配套菜单下的配套权限id
     * @param menuIds
     * @return
     */
    List<Long> querySubPermissionIds(List<Long> menuIds, Integer roleType);
}
